/***************************************************************
 * Name:      common.cpp
 * Purpose:   Implements common functions used everywhere
 * Author:    Milind Gupta (milind.gupta@gmail.com)
 * Website:   https://code.google.com/p/ganitsheets/
 * Created:   2011-06-09
 * Copyright: Milind Gupta ()
 * License:   Apache License 2.0
 **************************************************************/


// Include Files
#include "common.h"

// Function to convert and return an integer to string
std::string toString(int num)
{
    return std::string(wxString::Format(wxT("%i"),num).mb_str());
}

int str2int(std::string strNum)
{
    return wxAtoi(wxString(strNum.c_str(),wxConvUTF8));
}
